<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*"%>
<!DOCTYPE html >
<html>

<head><script type="text/javascript">
	function isSuccessful(form){
		
		if(form.username=""){
			alert("用户名不能为空");
			return false;
		}

	if(form.pwd.value!=form.pwd2.value){
		alert("两次密码输入不同！");
		return false;
	}
	else if(form.pwd.value==""){
		alert("密码不能为空 ");
		return false;
	}
	else return true;
	}
</script>
<style type="text/css">
.div2{
	margin-left:750px;
	margin-top:170px;
}
body{
	background:url(images/bg.jpg);
	width:1000px;
	height:auto;
	margin:0px;
	
}
.mybtn{
	width: 86px;
text-align: center;
line-height: 100%;
padding-top: 0.5em;
padding-right: 2em;
padding-bottom: 0.55em;
padding-left: 2em;
font-family: "Arial Black", Gadget, sans-serif;
font-size: 14px;
font-style: normal;
font-variant: normal;
font-weight: normal;
text-decoration: none;
margin-top: 0px;
margin-right: 2px;
margin-bottom: 0px;
margin-left: 2px;
vertical-align: text-bottom;
display: inline-block;
cursor: pointer;
zoom:1;
outline-width:medium;
outline-color:inherit;
font-size-adjust:none;
font-stretch:normal;
border-top-left-radius:0.5em;
border-top-right-radius:0.5em;
border-bottom-left-radius:0.5em;
border-bottom-right-radius:0.5em;
box-shadow:0px 1px 2px rgba(0,0,0,0.2);
color:#fefee9;
border-top-color:#da7c0c;
border-right-color:#da7c0c;
border-bottom-color:#da7c0c;
border-left-color:#da7c0c;
border-top-width:1px;
border-right-width:1px;
border-bottom-width:1px;
border-left-width:1px;
border-top-style:solid;
border-right-style:solid;
border-bottom-style:solid;
border-left-style:solid;
background-image:none;
background-attachment:scroll;
background-repeat:repeat;
background-position-x:0%;
background-position-y:0%;
background-size:auto;
background-origin:padding-box;
background-clip:padding-box;
backgr

</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册</title>
</head>
<body>
<div class="div2">
	<h2>用户注册</h2>
	<form action="checkpage1.jsp" method="post" onSubmit="isSuccessful(this)">
	<table>
		<tr>
			<td>用户名</td>
			<td><input type="text" name="username" placeholder="请输入用户名" size="20" ></td>
		</tr>
		<tr>
			<td>密码</td>
			<td><input type="password" name="pwd" placeholder="请输入密码" size="20" ></td>
		</tr>
		<tr>
			<td>重复密码</td>
			<td><input type="password" name="pwd2" placeholder="请输入密码" size="20" ></td>
		</tr>
		<tr>
			<td><input type="reset" value="重置" style="background-color:#F93" class="mybtn"></td>
			<td><input type="submit" value="注册" style="background-color:#F93" class="mybtn"></td>
 		</tr>
	</table>
	</form>
	</div>
</body>
</html>